<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" class="loading" lang="en" data-textdirection="ltr">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
  <meta name="author" content="PIXINVENT">
  <title>招聘计划管理后台</title>
  <link rel="stylesheet" type="text/css" th:href="@{/app-assets/css/vendors.css}">
  <link rel="stylesheet" type="text/css" th:href="@{/app-assets/css/vertical-menu.css}">
  <link rel="stylesheet" type="text/css" th:href="@{/app-assets/css/bootstrap-extended.css}">
</head>

<body>
<div class="content-wrapper right">
  <div class="content-header ">

    <div class="content-header-left mb-2">
      <h3 class="content-header-title mb-0">招聘计划</h3>
    </div>

  </div>
  <div class="card">
    <div class="card-content">
      <div class="card-body">

        <form method="get" action="/recruitplan">
          <div class="searchbox">
            <div class="form-inline">
              <div class="form-group">
                <!--/*@thymesVar id="recruit" type="cn.niit.pm.entity.Recruit"*/-->
                <input name="name" type="text" class="form-control" placeholder="请输入姓名" th:value="${recruit.name}">
              </div>
              <div class="form-group">
                <select name="post" type="text" class="form-control">
                  <option>请选择应聘岗位：</option>
                  <option>UI设计师</option>
                  <option>Java后端开发工程师</option>
                  <option>安全工程师</option>
                  <option>运维工程师</option>
                  <option>测试工程师</option>
                  <option>前端工程师</option>
                </select>
              </div>
              <div class="form-group">
                <button type="submit" class="btn btn-primary">查询</button>
              </div>
            </div>
          </div>
          <div class="funcbtn clearfix">
            <div class="pull-left">
              <a class="btn btn-info" th:href="@{/recruitplan/0}">添加招聘计划</a>
            </div>
          </div>
        </form>


        <div class="tablebox1">
          <!--招聘计划-->
          <table class="table">
            <thead>
            <tr>
              <th>姓名</th>
              <th>性别</th>
              <th>应聘岗位</th>
              <th>电话</th>
              <th>学历</th>
              <th>应聘时间</th>
              <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <tr th:each="recruit,stat : ${recruitList}">
              <td>
                <span th:text="${recruit.name}"></span>
              </td>
              <td>
                <span th:text="${recruit.gender}"></span>
              </td>
              <td>
                <span th:text="${recruit.post}"></span>
              </td>
              <td>
                <span th:text="${recruit.phone}"></span>
              </td>
              <td>
                <span th:text="${recruit.education}"></span>
              </td>
              <td>
                <span th:text="${#dates.format(recruit.recruitTime, 'yyyy-MM-dd')}"></span>
              </td>
              <td>
                      <span>
                        <a class="btn btn-primary btn-td" th:href="@{/recruitplan/{id}(id=${recruit.recruitId})}">修改</a>
                      </span>
                <span>
                        <a class="btn btn-danger btn-td" th:onclick="'del(' + ${recruit.recruitId} + ')'">删除</a>
                      </span>
              </td>
            </tr>
            </tbody>
          </table>
          <div class="page clearfix">
            <div class="pull-left">共 100 条记录 第 1 / 10 页</div>
            <div class="pull-right">

              <nav aria-label="..." class="pull-left">
                <ul class="pagination">
                  <li class="disabled"><a href="#" aria-label="Previous"><span aria-hidden="true">«</span></a></li>
                  <li class="active"><a href="#">1 <span class="sr-only">(current)</span></a></li>
                  <li><a href="#">2</a></li>
                  <li><a href="#">3</a></li>
                  <li><a href="#">4</a></li>
                  <li><a href="#">5</a></li>
                  <li><a href="#" aria-label="Next"><span aria-hidden="true">»</span></a></li>
                </ul>
              </nav>

              <div class="pull-left p-r-20  p-l-20"><select class="form-control">
                <option>10条每页</option>
              </select></div>
              <div class="pull-left">跳至<input type="text" value="" class="form-control">页</div>
            </div>
          </div>

        </div>
      </div>
    </div>
  </div>


  <script th:src="@{/app-assets/js/vendors.min.js}" type="text/javascript"></script>
  <script th:src="@{/app-assets/js/app-menu.js}" type="text/javascript"></script>
  <script th:src="@{/app-assets/js/app.js}" type="text/javascript"></script>
  <script th:src="@{/app-assets/js/echarts.min.js}" type="text/javascript"></script>
  <script th:src="@{/app-assets/js/sweetalert2.js}" type="text/javascript"></script>

  <script th:src="@{/app-assets/js/rollpage.js}" type="text/javascript"></script>
  <script th:src="@{/app-assets/js/recruit.js}" type="text/javascript"></script>

  <script>
    document.getElementById("demo2").onclick = function () {
      swal({
        title: "确认要取消吗？",
        type: "warning",
        showCancelButton: true,
        confirmButtonColor: "#DD6B55",
        confirmButtonText: "确认",
        closeOnConfirm: false
      })
    };
  </script>
</body>

</html>